//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.trace.api.fence;

import com.baidu.trace.model.BaseRequest;
import com.baidu.trace.model.CoordType;
import com.baidu.trace.model.LatLng;
import java.util.List;

public final class CreateFenceRequest extends BaseRequest {
    private Fence a;

    public final Fence getFence() {
        return this.a;
    }

    private CreateFenceRequest(int var1, long var2, Fence var4) {
        super(var1, var2);
        this.a = var4;
    }

    public static CreateFenceRequest buildLocalCircleRequest(int var0, long var1, String var3, String var4, LatLng var5, double var6, int var8, CoordType var9) {
        return new CreateFenceRequest(var0, var1, CircleFence.buildLocalFence(0L, var3, var4, var5, var6, var8, var9));
    }

    public static CreateFenceRequest buildServerCircleRequest(int var0, long var1, String var3, String var4, LatLng var5, double var6, int var8, CoordType var9) {
        return new CreateFenceRequest(var0, var1, CircleFence.buildServerFence(0L, var3, var4, var5, var6, var8, var9));
    }

    public static CreateFenceRequest buildServerPolygonRequest(int var0, long var1, String var3, String var4, List<LatLng> var5, int var6, CoordType var7) {
        return new CreateFenceRequest(var0, var1, PolygonFence.buildServerFence(0L, var3, var4, var5, var6, var7));
    }

    public static CreateFenceRequest buildServerPolylineRequest(int var0, long var1, String var3, String var4, List<LatLng> var5, int var6, int var7, CoordType var8) {
        return new CreateFenceRequest(var0, var1, PolylineFence.buildServerFence(0L, var3, var4, var5, var6, var7, var8));
    }

    public static CreateFenceRequest buildServerDistrictRequest(int var0, long var1, String var3, String var4, String var5, int var6) {
        return new CreateFenceRequest(var0, var1, DistrictFence.buildServerFence(0L, var3, var4, var6, var5));
    }

    public final String toString() {
        return this.a instanceof CircleFence?"CreateFenceRequest [tag=" + this.tag + ", serviceId=" + this.serviceId + ", circleFence=" + this.a.toString() + "]":(this.a instanceof PolygonFence?"CreateFenceRequest [tag=" + this.tag + ", serviceId=" + this.serviceId + ", polygonFence=" + this.a.toString() + "]":(this.a instanceof PolylineFence?"CreateFenceRequest [tag=" + this.tag + ", serviceId=" + this.serviceId + ", polylineFence=" + this.a.toString() + "]":(this.a instanceof DistrictFence?"CreateFenceRequest [tag=" + this.tag + ", serviceId=" + this.serviceId + ", districtFence=" + this.a.toString() + "]":"CreateFenceRequest [tag=" + this.tag + ", serviceId=" + this.serviceId + ", Fence=" + this.a.toString() + "]")));
    }
}
